-- GENERATED SPELL FOR [Magram Scout] --


function spell0_4638(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4638', 571, 1)
end

function Sorts_4638(pUnit, Event)
local choix_sorts_4638 = math.random(0, 0)
if choix_sorts_4638 == 0 then
pUnit:RegisterEvent('spell0_4638', 1, 1)
end
end

function mob4638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4638', math.random(1500, 3000), 1)
end

function mob4638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4638, 1, 'mob4638_Action')
RegisterUnitEvent(4638, 2, 'mob4638_Leave')
RegisterUnitEvent(4638, 3, 'mob4638_Kill')
RegisterUnitEvent(4638, 4, 'mob4638_Die')
